package com.cloud.salon.common.base.entity.menber;

import com.cloud.salon.common.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
 * @Description 员工实体类
 * @Author wolf--LZH
 * @CreateDate 2019/4/18 0018 下午 3:46
 */
@Data
@Entity
@Table(name = "staff")
public class Staff extends BaseEntity {

	// 关联的账号
	@Column(nullable = false)
	Integer userId;

	// 员工编号
	@Column(nullable = false, length = 50)
	private String number;
	// 性别
	@Column(nullable = false)
	private Integer sex;
	// 员工姓名
	@Column(nullable = false, length = 50)
	private String name;

	// 入职日期
	@Column(nullable = false)
	private Date joinDate;
	// 身份证号
	@Column(nullable = false, length = 50)
	private String idNumber;
	// 手机
	@Column(nullable = false, length = 20)
	private String phone;

	// 生日
	@Column(length = 32)
	private Date birthday;
	// 地址
	@Column(length = 500)
	private String address;
	// QQ
	@Column(length = 50)
	private String QQ;
	// 邮箱
	@Column(length = 50)
	private String email;
	// 备注
	@Column(length = 500)
	private String remark;
}